package com.up4years.dataapi.entity.weixin;

import java.util.ArrayList;
import java.util.List;

import com.up4years.dataapi.entity.base.BaseObject;

public class Button extends BaseObject{
 
	private static final long serialVersionUID = -3987972790893931415L;
	private String type;
 	private String name;
 	private String key;
 	private String pid;
 	private String url;
 	private int useopenid;
 	private int state;
 	private int seq;
 	public int getSeq() {
		return seq;
	}
	public void setSeq(int seq) {
		this.seq = seq;
	}
	private int level;
 	private List<Button> sub_button = new ArrayList<Button>();
  	
 	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getPid() {
		return pid;
	}
	public void setPid(String pid) {
		this.pid = pid;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public int getUseopenid() {
		return useopenid;
	}
	public void setUseopenid(int useopenid) {
		this.useopenid = useopenid;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List<Button> getSub_button() {
		return   this.sub_button;
	}
	@SuppressWarnings("unchecked")
	public void setSub_button(List<? extends Button> sub_button) {
		this.sub_button = (List<Button>) sub_button;
	}
	public void addButton(Button button){
		this.sub_button.add(button);
	}
}
